import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import electron from 'vite-plugin-electron/simple'
import tailwindcss from '@tailwindcss/vite'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    electron({
      main: {
        entry: 'electron/main.ts',
      },
      preload: {
        input: 'electron/preload.ts',
      },
    }),

    tailwindcss(),
  ],
  // build: {
  //   outDir: 'dist-electron',
  //   rollupOptions: {
  //     input: 'electron/preload.ts',
  //     output: {
  //       entryFileNames: 'preload.mjs'
  //     }
  //   }
  // }
})